package com.company.作业;

public class test {
    public static void main(String[] args) {
        Plane p=new Plane();
        p.CarryPassanage();
        p.Fly();
        p.Land();
        p.TakeOff();
        System.out.println("==========");
        Animal a=new Superman();
       a.Eat();
       a=new Bird();
       a.Eat();
        System.out.println("==============");
        IFlyable I=new Plane();
        I.Fly();
        I.Land();
        I.TakeOff();
        I=new Superman();
        I.Fly();
        I.Land();
        I.TakeOff();
        I=new Bird();
        I.Fly();
        I.Land();
        I.TakeOff();
    }
}
